<?php
	class vanbandenbs
	{
		public $MaVanBanDen = "";
		public $SovaKyHieu = "";
		public $NgayBanHanh = "";
		public $NgayHetHan = "";
		public $TrichYeu = "";
		public $MaNguoiDung = "";
		public $MaLoaiVanBan = "";
		public $MaTrangThai = "";
		public $MaNguoiDuyet = "";
		public $NgayDen = "";
		public $ThoiGianDuyet = "";
		public $NoiBanHanh = "";
		public $SoDen = "";
		public $MaPhongXuLy = "";
		public $MaNguoiXuLy = "";
		
		public function Add()
		{
			$db = new vanbandendb();
			return $db->Add($this->SovaKyHieu, $this->TrichYeu, $this->MaLoaiVanBan,$this->NgayBanHanh,$this->NgayHetHan, $this->MaTrangThai, $this->NoiBanHanh);
		}
		
		public function Delete()
		{
			$db = new vanbandendb();
			return $db->Delete($this->MaVanBanDen);
		}
		
		public function Update()
		{
			$db = new vanbandendb();
			return $db->Update($this->MaVanBanDen, $this->SovaKyHieu, $this->TrichYeu, $this->MaLoaiVanBan,$this->NgayBanHanh,$this->NgayHetHan, $this->NoiBanHanh);
		}
	
		public function GetList()
		{
			$db = new vanbandendb();
			return $db->GetList($this->MaVanBanDen, $this->SovaKyHieu, $this->NgayBanHanh,$this->NgayHetHan,$this->TrichYeu, $this->MaLoaiVanBan, $this->MaTrangThai,$this->NgayDen,$this->ThoiGianDuyet, $this->NoiBanHanh);
		}
		public function PageList($start=0, $limit=15)
		{
			$db = new vanbandendb();
			return $db->PageList($this->MaVanBanDen, $this->SovaKyHieu, $this->NgayBanHanh,$this->NgayHetHan,$this->TrichYeu, $this->MaLoaiVanBan, $this->MaTrangThai,$this->NgayDen,$this->ThoiGianDuyet, $this->NoiBanHanh, $start, $limit);
		}
		
		public function GetTrangThaiVanBan()
		{
			$db = new vanbandendb();
			return $db->GetTrangThaiVanBan($this->MaVanBanDen, $this->MaPhongXuLy, $this->MaNguoiXuLy, $this->MaTrangThai, $this->MaNguoiDuyet, $this->SovaKyHieu, $this->NgayBanHanh, $this->NgayHetHan,  $this->NoiBanHanh);
		}
		
		public function pageTrangThaiVanBan($start=0, $limit=15)
		{
			$db = new vanbandendb();
			return $db->pageTrangThaiVanBan($this->MaVanBanDen, $this->MaPhongXuLy, $this->MaNguoiXuLy, $this->MaTrangThai, $this->MaNguoiDuyet, $this->SovaKyHieu, $this->NgayBanHanh, $this->NgayHetHan,  $this->NoiBanHanh,$start, $limit);
		}
		
	
		
		public function ChangeTrangThai()
		{
			$db = new vanbandendb();
			return $db->ChangeTrangThai($this->MaVanBanDen, $this->MaNguoiDuyet,  $this->MaTrangThai, $this->MaPhongXuLy, $this->MaNguoiXuLy);
		}
	}
?>